﻿
namespace Community.CsharpSqlite.WP.SqliteDataProvider.Base
{

    public interface IDataReader
    {
        DataTable GetSchemaTable();
        void Close();
        bool NextResult();
        bool Read();

        int Depth { get; set; }
        bool IsClosed { get; set; }
        int RecordsAffected { get; set; }

        DataRow this[string name] { get; set; }
        DataRow this[int i] { get; set; }

        T GetTypeOf<T>(string fieldName);
        T GetTypeOf<T>(int i);
    }
}
